<div class="ibox-content">
    <br/><p style="text-indent:20px;">发件人：{$from_user_id}</p>
    <div style="height:120px;padding:0 20px;overflow:auto;" class="form-group">
        <div class="col-sm-12" style=" word-wrap:break-word;">{$note}</div>
    </div>
    <p style="text-indent:20px;">发送时间：{$send_time}</p>
    <div class="form-group">
        <label class="col-sm-4 control-label" for="name"></label>
        <div class="col-sm-8">
            <if condition="$from_user neq 0"><a target="_blank" class="btn btn-primary huifu">回复</a> &nbsp; </if>
            <input class="btn" onclick="javascript:layer.closeAll();"  type="button" value="关闭"/>
        </div>
    </div>
</div>

<script type="text/javascript">

    $('.huifu').click(function(){
        $.get('{:U("Message/add")}'+'&fuser_id={$from_user_id}'+'&t=' + Math.random(1000), '', function(data){  
          parent.layer.open({
            type: 1,
            area: ['420px', '400px'],
            title: '发送消息',
            shadeClose:true,
            content: data
          });
        }) 
    })
</script>